<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>LOGIN</title>
    {% load static %}
    <link rel="stylesheet" type="text/css" href="{% static 'user/register.css' %}">
</head>
<body>
<div>
    <h1>欢迎登录</h1>
    {% if error %}
         <p id="error">{{ error }}</p>
    {% endif %}
    <form method="post" action="{% url 'user:login' %}">
        <label>
            用户名
        </label>
            <input type="text" name="username"/>
        <label>
            密码
        </label>
            <input type="password" name="password"/>
        <input type="submit" value="登录">
    </form>
</div>
</body>
</html>